﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace AxialWeb
{
	public partial class MultiCondition : System.Web.UI.Page
	{
		public void DoTest()
		{
			int a = 1;
			int b = 2;
			int c = 3;
			int d = 4;

			if (a == b)
				a = 1;

			if (a == b)
				a = 1;
			else
				b = 2;

			for (int e = 0; e < 5; ++e)
				a = 1;

			while (a == b)
				a = 1;

			for (int e = 0; e <= 2; ++e)
				if (e == 1)
					a = 1;
				else
					b = 2;

			if (a == b && b == c)
				a = 1;

			if (a == b && b == c && c == d)
				b = 2;

			if (a == b || b == c)
				c = 3;

			if (a == b || b == c || c == d)
				d = 4;

			while (a == b && b == c)
				a = 1;

			while (a == b && b == c && c == d)
				b = 2;

			while (a == b || b == c)
				c = 3;

			while (a == b || b == c || c == d)
				d = 4;

			if (a == b && a != c || b == d)
				lblTest.Text = "condition passed";
			else
				lblTest.Text = "condition didn't pass";
		}
	}
}
